﻿using Autofac;
using FlickrApi;
using System.Reflection;
using Module = Autofac.Module;

[assembly: AssemblyVersion("1.0.0.0")]
namespace PhotoRepository
{
    public class PhotoRepositoryImplementation : Module
    {
        protected override void Load(ContainerBuilder builder)
        {
            builder.RegisterType<FlickrPhotoRepository>().As<IPhotoRepository>().SingleInstance();
            builder.RegisterModule(new FlickrApiImplementation());
        }
    }
}
